import { Canvas, Meta } from "@storybook/blocks";
import {Encrypt,Decrypt} from './rsa.stories.tsx';
import Example from "./example.tsx";

<Meta title="libs/rsa" />

# rsa
非对称加密算法

#### Example

<Canvas of={Encrypt} />

## Usage

```ts
import {rsaEncrypt, rsaDecrypt} from "apusic-ui-kit";

const encryptStr = rsaEncrypt("123456");

```

#### Arguments
- **data** - 需要加、解密的信息
- **key** - 使用默认生成RSA密钥对, 可自定义

